package com.gml.jdk.annotation.table;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 注解Integer类型字段
 * @author gml
 * @version V1.0
 * @Package com.gml.test.annotation.table
 * @date 2020/9/9 22:54
 */
@Target(ElementType.FIELD) //应用于字段上
@Retention(RetentionPolicy.RUNTIME)
public @interface SQLInteger {

    //该字段对应数据库表列名
    String name() default "";

    //嵌套注解
    Constraints constraints() default @Constraints;

}
